import axios from '@iframe/tools/axios/axios.js'

export function query() {
    return axios.request({
        url: `/${import.meta.env.IFRAME_CONTEXT_PATH}/relation`,
        method: 'get'
    })
}

export function update(data) {
    return axios.request({
        url: `/${import.meta.env.IFRAME_CONTEXT_PATH}/relation`,
        method: 'put',
        data
    })
}
